﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Util.IO
{
    /*
     * 文件搜索过滤器
     */
    public class FileFilter
    {
        public string FileNameRegex { set; get; }
        public string FileExtension { set; get; }
        public SearchOption SearchOption { set; get; }

        public FileFilter(SearchOption searchOption)
            : this(null, null, searchOption)
        {
        }

        public FileFilter(string fileExtension, SearchOption searchOption)
            : this(null, fileExtension, searchOption)
        {
        }

        public FileFilter(string fileNameRegex, string fileExtension, SearchOption searchOption)
        {
            this.FileNameRegex = fileNameRegex;
            this.FileExtension = fileExtension;
            this.SearchOption = searchOption;
        }
    }
}
